﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SMSTest.aspx.cs" Inherits="Page_SMSTest" %>

<%@ Register Src="~/Control/Pager.ascx" TagName="Pager" TagPrefix="wsc" %>
<%@ Register Src="~/Control/Order.ascx" TagName="Order" TagPrefix="wsc" %>
<%@ Register Assembly="Wicresoft.Common" Namespace="Wicresoft.Web.UI.WebControls"
    TagPrefix="wsc" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>短信测试</title>
    <link href="~/Style/Css/Css.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/Attendences.Web/Js/jquery.js"></script>
    <link href="../Style/Css/calendar.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../Js/calendar.js"></script>
    <style type="text/css">
        *
        {
            margin: 0px;
            padding: 0px;
        }
        body
        {
            cursor: auto;
        }
        html
        {
            overflow: hidden;
        }
        #sideBar
        {
            width: 100%;
            overflow: hidden;
        }
        #main
        {
            overflow: auto;
            width: 50%;
        }
        #toggleBar, .div
        {
            width: 3px;
            height: 100%;
            overflow: hidden;
            background: #F1F6FC;
            cursor: e-resize;
            border-left: 1px solid #99BBE8;
            border-right: 1px solid #99BBE8;
        }
        td
        {
            display: block;
            overflow: auto;
            word-break: break-all;
        }
        #mainUD
        {
            overflow: auto;
        }
        #toggleBarUD, .divUD
        {
            height: 3px;
            width: 100%;
            overflow: hidden;
            background: #F1F6FC;
            cursor: n-resize;
            border-top: 1px solid #99BBE8;
            border-bottom: 1px solid #99BBE8;
        }
        .btn
        {
            border-right: #2C59AA 1px solid;
            padding-right: 2px;
            border-top: #2C59AA 1px solid;
            padding-left: 2px;
            font-size: 12px;
            filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5);
            border-left: #2C59AA 1px solid;
            cursor: hand;
            color: black;
            padding-top: 2px;
            border-bottom: #2C59AA 1px solid;
        }
    </style>
    <script type="text/javascript">
        function OverChangeClass(obj) {
            if (obj.className != "Cur")
                obj.className = 'Over'
        }
        function ReturnClass(obj) {
            obj.className = obj.oldclass;
        }
    </script>
</head>
<body scroll="no">
    <form id="form1" runat="server">
    <div>
        <table cellspacing="0" cellpadding="0" border="0" class="MainTable" width="100%"
            height="100%" style="">
            <tr>
                <td valign="top" width="50%">
                    <div id="sideBar">
                        <table cellspacing="0" cellpadding="0" border="0" class="" width="100%" height="100%">
                            <tr>
                                <td class="TitleBar">
                                    <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                        <tr>
                                            <td class="MainTitle">
                                                短信测试
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                        <tr>
                                            <td>
                                                <wsc:Order ID="odList" runat="server"></wsc:Order>
                                                <!--List Header-->
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div id="MainList" style="width: 100%; overflow: auto;" class="ScrollDiv">
                                        <div id="TheList" style="height: 620px; width: 100%; overflow-y: scroll">
                                            <table width="640" class="MainInfolist">
                                                <tr class="Normal">
                                                    <td width="120" align="right">
                                                        请选择根据模板填写的手机号码列表
                                                    </td>
                                                    <td align="left">
                                                        <asp:FileUpload runat="server" ID="file" CssClass="Button02" />
                                                    </td>
                                                </tr>
                                                <tr class="Normal" align="right">
                                                    <td width="120" align="left">
                                                        短信标题
                                                    </td>
                                                    <td align="left">
                                                        <asp:TextBox runat="server" ID="txtTitle" Width="500" MaxLength="20" CssClass="Button02"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr class="Normal" align="right">
                                                    <td width="120" align="left" style="height: 120px">
                                                        短信内容
                                                    </td>
                                                    <td align="left" style="height: 120px">
                                                        <asp:TextBox runat="server" ID="txtContent" Width="500" MaxLength="200" TextMode="MultiLine"
                                                            CssClass="Button02" Height="100"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="center" colspan="2">
                                                        <asp:Button runat="server" Text="发送" CssClass="Button01" ID="btnSend" OnClick="btnSend_Click" />&nbsp;&nbsp;
                                                        <input type="button" class="Button01" onclick="window.open('smsTemp.xls');" value="下载模板" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <wsc:Pager ID="pgList" runat="server" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
                <!--<td width="3" id="toggleBar">
                </td>
                <td id="main" valign="top">
                    <iframe frameborder="2" scrolling="no" width="100%" name="DetailFrame" id="DetailFrame"
                        src="AttendencePlanExport.aspx" height="100%"></iframe>
                </td>-->
            </tr>
        </table>
    </div>
    </form>
</body>
<script type="text/javascript">
    function setHeight() {
        var div = document.getElementById("TheList");
        var height = document.body.clientHeight;
        div.style.height = height - 100 + "px";

    }
    setHeight();
    try { window.onresize = setHeight(); } catch (e) { }
</script>
</html>
